//
//  BCDebugAppMonitor.h
//  BCDebugKit
//
//  Created by Basic on 2021/3/1.
//  App 监控，fps、ram监控

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface BCDebugAppMonitor : NSObject
/// 当前fps，例如：20fps
@property (nonatomic, assign, readonly) NSInteger fps;
/// 当前ram，例如：20.5 m
@property (nonatomic, assign, readonly) CGFloat ram;
/// 当前cpu使用率，例如：1（1%）
@property (nonatomic, assign, readonly) NSInteger cpu;
/// 启动时长，ms
@property (nonatomic, assign, readonly) long startTime;

#pragma mark - system
/// 获取默认实例
+ (instancetype)sharedInstance;


//MARK: - fps监测
/// 开始监测fps
- (void)startFpsMonitor;
/// 停止监测fps
- (void)stopFpsMonitor;

//MARK: - ram监测
/// 开始监测ram
- (void)startRamMonitor;
/// 停止监测ram
- (void)stopRamMonitor;

//MARK: - cpu监测
/// 开始监测cpu
- (void)startCpuMonitor;
/// 停止监测cpu
- (void)stopCpuMonitor;

//MARK: - 启动时长
/// 加载启动时长
- (void )loadAppStartTime;
@end

NS_ASSUME_NONNULL_END
